package com.wmwu.mybatistest.mapper;

import com.wmwu.mybatistest.annotations.DataCoverageDataAuth;
import com.wmwu.mybatistest.entity.MoneyModel;
import com.wmwu.mybatistest.enums.DataScope;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wmwu
 */
@Mapper
public interface MoneyModelMapper {
    /**
     * 查询所有
     *
     * @return
     */
    List<MoneyModel> selectAll();

    /**
     * 根据id查询货币信息
     *
     * @param id
     * @return
     */
    @DataCoverageDataAuth(column = "name", type = DataScope.I)
    MoneyModel selectById(@Param("id") String id);
}